package com.zking.ssm.service.impl;

import com.zking.ssm.mapper.HotelBrandMapper;
import com.zking.ssm.mapper.HotelRoomMapper;
import com.zking.ssm.model.HotelRoom;
import com.zking.ssm.service.IHotelRoomService;
import com.zking.ssm.utils.PageBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HotelRoomServiceImpl implements IHotelRoomService {

    @Autowired
    private HotelRoomMapper hotelRoomMapper;

    public HotelRoomServiceImpl(){

    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return hotelRoomMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(HotelRoom record) {
        return hotelRoomMapper.insert(record);
    }

    @Override
    public int insertSelective(HotelRoom record) {
        return hotelRoomMapper.insertSelective(record);
    }

    @Override
    public HotelRoom selectByPrimaryKey(Integer id) {
        return hotelRoomMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(HotelRoom record) {
        return hotelRoomMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKeyWithBLOBs(HotelRoom record) {
        return hotelRoomMapper.updateByPrimaryKeyWithBLOBs(record);
    }

    @Override
    public int updateByPrimaryKey(HotelRoom record) {
        return hotelRoomMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<HotelRoom> SelectAll(HotelRoom hotelRoom, PageBean pageBean) {
        return hotelRoomMapper.SelectAll(hotelRoom);
    }
}
